package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;

/**
 * 登录消息
 *
 * @author StanWind
 */
public class LoginRequest extends Serializer {
    private String account;
    private String password;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    @Override
    protected void read() {
        this.account = readString();
        this.password = readString();
    }

    @Override
    protected void write() {
        writeString(account);
        writeString(password);
    }

}
